package com.shoux.api.web.entity.apiData;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoZhi
 * @since 2022-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("post_res")
@ApiModel(value="PostResEntity对象", description="")
public class PostResEntity extends Model<PostResEntity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("ENTNAME")
    private String entname;

    @ApiModelProperty(value = "请求名称")
    @TableField("POSTNAME")
    private String postname;

    @TableField("POSTCODE")
    private String postcode;

    @ApiModelProperty(value = "入参")
    @TableField("PARAMS")
    private String params;

    @ApiModelProperty(value = "返回参数")
    @TableField("RESPONSE")
    private String response;

    @TableField("CREATETIME")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "是否被解析(0:待解析，1:解析成功，2:解析失败)")
    @TableField("STATUS")
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
